import Vue from 'vue'
import Vuex from 'vuex'

import Login from './modules/login'
import Goods from './modules/goods'
import Order from './modules/order'
import Content from './modules/content'
import User from './modules/user'


Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    login: {
      namespaced: true,
      ...Login
    },
    // Index,
    goods: {
      namespaced: true,
      ...Goods
    },
    order: {
      namespaced: true,
      ...Order
    },
    content: {
      namespaced: true,
      ...Content
    },
    user: {
      namespaced: true,
      ...User
    }
  }
})

export default store
